﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace Lyh.Train.Data
{
    public class Context
    {
        public static string SystemName = "易达火车票-2014版";
        public static int BeforeDay = 19;
        public static int CodeType = 1004;
        public static int SoftId = 95023;
        public static string SoftKey = "d936bdb71dc94ca5960acdadd3c80eb8";

        public static string MailHost = "smtp.126.com";
        public static int MailPort = 25;
        public static string MailAddress = "yidatrain@126.com";
        public static string MailPassword = "hcp2014";
        public static string MailBcc = "liuyuhualstc@126.com";

        public static string HttpMethodPost = "POST";
        public static string HttpMethodGet = "GET";
        public static string Proxy = string.Empty;

        public static string Host = "kyfw.12306.cn";
        public static string Origin = "https://kyfw.12306.cn";
        public static string LoginReferer = "https://kyfw.12306.cn/otn/login/init";
        public static string LeftTicketReferer = "https://kyfw.12306.cn/otn/leftTicket/init";
        public static string LoginUrl = "https://kyfw.12306.cn/otn/login/loginAysnSuggest";
        public static string LoginRandCodeUrl = "https://kyfw.12306.cn/otn/passcodeNew/getPassCodeNew?module=login&rand=sjrand";
        public static string OrderRandCodeUrl = "https://kyfw.12306.cn/otn/passcodeNew/getPassCodeNew?module=passenger&rand=randp";
        public static string CheckRandCodeUrl = "https://kyfw.12306.cn/otn/passcodeNew/checkRandCodeAnsyn";
        public static string AutoSubmitOrderRequestUrl = "https://kyfw.12306.cn/otn/confirmPassenger/autoSubmitOrderRequest";
        public static string GetQueueCountAsyncUrl = "https://kyfw.12306.cn/otn/confirmPassenger/getQueueCountAsync";
        public static string ConfirmSingleForQueueAsysUrl = "https://kyfw.12306.cn/otn/confirmPassenger/confirmSingleForQueueAsys";
        public static string InitNoCompleteUrl = "https://kyfw.12306.cn/otn/queryOrder/initNoComplete";
        public static string QueryMyOrderNoCompleteUrl = "https://kyfw.12306.cn/otn/queryOrder/queryMyOrderNoComplete";

        public static CookieContainer Cookies = new CookieContainer();

        public static string UserName = string.Empty;
        public static string RealName = string.Empty;

        public static List<PassengerDTOs> Passengers = new List<PassengerDTOs>();
        public static List<Station> Stations = new List<Station>();
        public static List<Seat> Seats = new List<Seat>();

    }
}